package com.conn;

import java.io.*;
import com.conn.*;

class RegisterInfo implements Serializable {
    public String username;
    public String passwd;
    public String email;
    public String name;
    public String sex;
    public String birthday;
    public String phone;
    public String country;
    public String home;
}

class ClientInfo {
    public String username;
    public String passwd;
}

enum Command {
//    TMP_COMMAND(""),
    REGISTER("REGISTER"),
    UNREGISTER("UNREGISTER"),
    LOGIN("LOGIN"), 
    LOGOUT("LOGOUT");

    private String id;

    private Command(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

//    public void setTmpCommandId(String id) {
//        Command.TMP_COMMAND.id = id;
//    }
}

public abstract class Packer {
    public abstract String registerPack(RegisterInfo ri);
};
